#pragma once
#include <cstdio>

class DepthReader
{
private:
	static const int BUFSIZE = 1000;
	FILE *datafile, *metafile;
	char buf[BUFSIZE];
	bool parsed;
public:
	int width, height;
	int curRecId, curRecClocks;
	short *tmpFrameBuf;

public:
	DepthReader(char datafilename[], char metafilename[]);
	~DepthReader(void);
	bool getNextRec(void);
	bool getNextFrame(short *sptr);
};

